package com.itheima.reggie.controllerApi;

import com.itheima.reggie.bean.User;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.LoginDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by IntelliJ IDEA.
 * User: 许志民
 * Date: 2021-12-08
 */
@Api("登录功能实现")
public interface UserControllerApi {

    @ApiImplicitParam(name = "user",value = "用户输入的手机号用于发送短信验证码",required = true)
    public R sendMsg(@RequestBody User user);

    @ApiImplicitParam(name = "loginDto",value = "用户登录的手机号以及验证码",required = true)
    public R loginUser(@RequestBody LoginDto loginDto);

    @ApiImplicitParam(value = "用户退出功能")
    public R loginOut();
}
